﻿


using System;
using System.Text;
using System.Collections;
using System.Xml;
using System.Data;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Resources;
using System.Reflection;
using System.Globalization;
using System.Threading;

using Telerik.WebControls;
using UFSoft.UBF.UI.WebControls;
using UFSoft.UBF.UI.WebControls.InterActionComponenet;
using UFSoft.UBF.Util.Log;
using UFSoft.UBF.Util.Context;

//using MagicAjax.UI.Controls;
using UFSoft.UBF.Report.UI.ReportView.Web;
using UFSoft.UBF.UI.WebControlAdapter;
using UFSoft.UBF.UI.FormProcess;
using UFSoft.UBF.UI.IView;
using UFSoft.UBF.UI.Engine;
using UFSoft.UBF.UI.Engine.Builder;
using UFSoft.UBF.UI.Engine.Authorization;
using UFSoft.UBF.UI.MD.Runtime;
using UFSoft.UBF.UI.ActionProcess;
using UFSoft.UBF.UI.ControlModel;
using UFSoft.UBF.UI.Controls;
using UFSoft.UBF.UI.WebControls.Association;
using UFSoft.UBF.UI.WebControls.ClientCallBack;
using System.Web.UI;
using UFSoft.UBF.UI.UIFormPersonalization;
using System.Collections.Specialized;


/***********************************************************************************************
 * Form ID:67379ce0-19df-4bab-a131-bad3ea735113 
 * Form Name:PRChangeDocUIForm
 * UIFactory Auto Generator
 ***********************************************************************************************/
namespace UFIDA.U9.Cust.OTD.ZF.SHXM3003.OTDUI.PRChangDocUIModel
{
	[FormRegister("UFIDA.U9.Cust.OTD.ZF.SHXM3003.OTDUI","UFIDA.U9.Cust.OTD.ZF.SHXM3003.OTDUI.PRChangDocUIModel.PRChangeDocUIFormWebPart", "UFIDA.U9.Cust.OTD.ZF.SHXM3003.OTDUI.WebPart", "67379ce0-19df-4bab-a131-bad3ea735113","WebPart", "True", 992, 504)] 
	///insert into aspnet_Parts (SysVersion, Path, ClassName, [Assembly], FormId) values (0, 'UFIDA.U9.Cust.OTD.ZF.SHXM3003.OTDUI', 'UFIDA.U9.Cust.OTD.ZF.SHXM3003.OTDUI.PRChangDocUIModel.PRChangeDocUIFormWebPart', 'UFIDA.U9.Cust.OTD.ZF.SHXM3003.OTDUI.WebPart', '67379ce0-19df-4bab-a131-bad3ea735113')
	///<siteMapNode url="~/erp/simple.aspx?lnk=67379ce0-19df-4bab-a131-bad3ea735113" title="PRChangeDocUIForm"/>
    public partial class PRChangeDocUIFormWebPart : UFSoft.UBF.UI.FormProcess.BaseWebForm
    {
		#region Page Controller/Code Behind
        private static readonly ILogger logger = LoggerManager.GetLogger(typeof(PRChangeDocUIFormWebPart));
        private string assemblyName = System.Reflection.Assembly.GetExecutingAssembly().FullName;
        //private string displayNamePostfix = "displayName";

		#region 强类型化基类属性.
		public new PRChangDocUIModelAction Action
		{
			get { return (PRChangDocUIModelAction)base.Action; }
			set { base.Action = value; }
		}
		PRChangDocUIModelModel _uimodel=null;
		public new PRChangDocUIModelModel Model
		{
			get 
			{
			     if(_uimodel == null){
			          _uimodel = new PRChangDocUIModelModel();
			     }
			     return _uimodel; 
			}
			set { _uimodel = value; }
		}
        protected override IUIModel UIModel{
            get{
                return this.Model;
            }
            set{
                this.Model = value as PRChangDocUIModelModel;
            }
        }
		#endregion 
		public FormAdjust adjust;
        #region variable declaration
        IUFToolbar Toolbar2;
        IUFButton BtnSave;
        IUFButton BtnCancel;
        IUFButton BtnAdd;
        IUFButton BtnDelete;
        IUFButton BtnSubmit;
        IUFButton BtnApprove;
        IUFButton BtnFind;
        IUFButton BtnList;
        IUFButton BtnFirstPage;
        IUFButton BtnPrevPage;
        IUFButton BtnNextPage;
        IUFButton BtnLastPage;
        IUFButton BtnOutput;
        IUFButton BtnPrint;
        IUFCard Card0;
        IUFButton Btn_PRChange;
        IUFButton ButtonHD;
        IUFCard Card3;
        IUFCard Card4;
        IUFLabel lblID85;
        IUFFldNumberControl ID85;
        IUFLabel lblSysVersion89;
        IUFFldNumberControl SysVersion89;
        IUFLabel lblDocmentType257;
        IUFFldReference DocmentType257;
        IUFLabel lblDocNo44;
        IUFFldTextBox DocNo44;
        IUFLabel lblBusinessDate122;
        IUFFldDatePicker BusinessDate122;
        IUFLabel lblPRDocNo215;
        IUFFldTextBox PRDocNo215;
        IUFLabel lblRemake197;
        IUFFldTextBox Remake197;
        IUFLabel lblStatus2493;
        IUFFldDropDownList Status2493;
        IUFFldFlexFieldPicker FlexFieldPicker0;
        IUFTabControl TabControl2;
        IUFTabPage TabPage5;
        IUFDataGrid DataGrid10;
        IUFTabControl TabControl3;
        IUFTabPage TabPage6;
        IUFDataGrid DataGrid11;
		UpdatePanel updatePanel;
		HiddenField wpFindID;
		IUFContainer topLevelPanel;     
        IUFSeparator SeparatorInFavorites;
        IUFButton BtnDefaultValues;
        #endregion
        
        #region constructor
        public PRChangeDocUIFormWebPart()
        {
            FormID = "67379ce0-19df-4bab-a131-bad3ea735113";
            IsAutoSize = bool.Parse("True");
            NewIsAutoSize = bool.Parse("True");
        }
        #endregion


	
            
	//获取档案版型结果: 

        #region eventBind and databind
        private void EventBind()
        {
			//事件绑定模板
				//Button控件事件
			this.BtnSave.Click += new EventHandler(BtnSave_Click);		
						
				//Button控件事件
			this.BtnCancel.Click += new EventHandler(BtnCancel_Click);		
						
				//Button控件事件
			this.BtnAdd.Click += new EventHandler(BtnAdd_Click);		
						
				//Button控件事件
			this.BtnDelete.Click += new EventHandler(BtnDelete_Click);		
						
				//Button控件事件
			this.BtnSubmit.Click += new EventHandler(BtnSubmit_Click);		
						
				//Button控件事件
			this.BtnApprove.Click += new EventHandler(BtnApprove_Click);		
						
				//Button控件事件
			this.BtnFind.Click += new EventHandler(BtnFind_Click);		
						
				//Button控件事件
			this.BtnList.Click += new EventHandler(BtnList_Click);		
						
				//Button控件事件
			this.BtnFirstPage.Click += new EventHandler(BtnFirstPage_Click);		
						
				//Button控件事件
			this.BtnPrevPage.Click += new EventHandler(BtnPrevPage_Click);		
						
				//Button控件事件
			this.BtnNextPage.Click += new EventHandler(BtnNextPage_Click);		
						
				//Button控件事件
			this.BtnLastPage.Click += new EventHandler(BtnLastPage_Click);		
						
				//Button控件事件
			this.BtnOutput.Click += new EventHandler(BtnOutput_Click);		
						
				//Button控件事件
			this.BtnPrint.Click += new EventHandler(BtnPrint_Click);		
						
				//Button控件事件
			this.Btn_PRChange.Click += new EventHandler(Btn_PRChange_Click);		
						
				//Button控件事件
			this.ButtonHD.Click += new EventHandler(ButtonHD_Click);		
						

		
			//Grid控件的分页事件				
			((UFWebDataGridAdapter)this.DataGrid10).GridMakePageEventHandler += new GridMakePageDelegate(UFGridDataGrid10_GridMakePageEventHandler);
             //Grid控件的客户化筛选，定位事件
            ((UFWebDataGridAdapter)this.DataGrid10).GridCustomFilterHandler += new GridCustomFilterDelegate(UFGridDataGrid10_GridCustomFilterHandler);
	
			//Grid控件的分页事件				
			((UFWebDataGridAdapter)this.DataGrid11).GridMakePageEventHandler += new GridMakePageDelegate(UFGridDataGrid11_GridMakePageEventHandler);
             //Grid控件的客户化筛选，定位事件
            ((UFWebDataGridAdapter)this.DataGrid11).GridCustomFilterHandler += new GridCustomFilterDelegate(UFGridDataGrid11_GridCustomFilterHandler);

            AfterEventBind();
        }
        #endregion            
        
		#region override method
		protected override void OnLoad(EventArgs e)
		{
			base.OnLoad2(e);
		}
		protected override void OnLoadDataDo(EventArgs e)
		{
		    adjust.ProcessAdjustBeforeOnLoad(this);
			if (UIEngineHelper.IsDataBind(PageStatus, this))
			{
				if(this.Model==null){				        
					this.Model = new PRChangDocUIModelModel();
				}
				OnLoadConsumer(new InParameterModel[]{},new InParameterModel[]{});
				OnLoadData(this);
				this.IsDataBinding = true ; //加载完数据要绑定一次.目前加这.
			}
			else
			{
				//去除.已经移入到OnInit()中.
				//this.Model = (PRChangDocUIModelModel)this.CurrentState[this.TaskId.ToString()];
			}
			adjust.ProcessAdjustAfterOnLoadData(this);
		            AfterOnLoad();
            
            adjust.ProcessAdjustAfterOnLoad(this);
		}
		protected override void OnPreRender(EventArgs e)
		{
			base.OnPreRender2(e);
		}
        protected override void OnPreRenderDo(EventArgs e)
        {
            adjust.ProcessAdjustBeforeOnPreRender(this);
			base.OnPreRender(e);
			this.CurrentState[this.TaskId.ToString()] = this.Model;
			RegisterClearWebPartPadding();
            UFIDA.U9.UI.PDHelper.FormAuthorityHelper.SetWebPartAuthorization(this);
            
			if (IsDataBinding) //2006-9-7 可由开发人员控制
			{
				BeforeUIModelBinding();
				//BtnFind对应隐藏域的数据传递。:True
				UFIDA.U9.UI.PDHelper.CommonReferenceHelper.BindingBtnFindParam(this);
								if(!Page.IsPostBack)
				{
					EnumTypeBinding.BindEnumControls(this);
				}
				UFIDA.U9.UI.Commands.CommandHelper.BindFlexData(this);
				adjust.ProcessAdjustBeforeDataBinding(this);
				if (this.IsOnlyDataBinding)
				{
					this.DataBinding();
				}
				adjust.ProcessAdjustAfterDataBinding(this);

				AfterUIModelBinding();
			}
			adjust.ProcessAdjustAfterOnPreRender(this);
        }
		protected override void OnInit(EventArgs e)
		{
			base.OnInit2(e);
		}
		protected override void OnInitDo(EventArgs e)
		{			 
			this.Page.InitComplete += new EventHandler(Page_InitComplete);
			WebPartBuilder.InitWebPart(this);
            this.Action = new PRChangDocUIModelAction(this);
            adjust = new FormAdjust();
		    CreateFormChildControls();
		}
        void Page_InitComplete(object sender, EventArgs e)
        {

            adjust.ProcessInit(this);
        }
        #endregion

      
        
        #endregion

	
		/// <summary>
        /// WebPart View
        /// </summary>
        #region view Create Contorls
        private void CreateFormChildControls()
        {
            IUFContainer _panel = UIControlBuilder.BuildTopLevelContainer(this,"PRChangeDocUIForm",true,992,504);
            CommonBuilder.ContainerGridLayoutPropBuilder(_panel, 1, 3, 0, 10, 0, 0, 0, 0);
			InitViewBindingContainer(this, _panel,  null, "", "", null, 1, "");
			UIControlBuilder.BuildContainerGridLayout(_panel, 10,new GridColumnDef[]{new GridColumnDef(1500,bool.Parse("False"),"Title"),},new GridRowDef[]{new GridRowDef(25,bool.Parse("True")),new GridRowDef(450,bool.Parse("False")),new GridRowDef(20,bool.Parse("True")),});
            //???还有用么?
            topLevelPanel = _panel;    
            
            UIControlBuilder.BuildCommonControls(this,ref updatePanel,ref wpFindID);
            





	
			_BuilderControl_Toolbar2(_panel);

		
			UIControlBuilder.BuilderUFControl(this.Toolbar2, "1");		


	
			_BuilderControl_Card0(_panel);

		
			UIControlBuilder.BuilderUFControl(this.Card0, "3");		


	
			_BuilderControl_Card3(_panel);

		
			UIControlBuilder.BuilderUFControl(this.Card3, "2");		



			
     
			
			
            EventBind();
            AfterCreateChildControls();
            
        }        







				        
        private void _BuilderControl_Toolbar2(IUFContainer container)
        {
            IUFToolbar _Toolbar = UIControlBuilder.BuilderToolBarControl(container,"Toolbar2",true, true, "1",1500, 25, 0, 0, 1, 1,"100");
            this.Toolbar2 = _Toolbar;
            
            ///foreach Toolbar下的所有控件，增加到此容器
                            this.BtnSave = UIControlBuilder.BuilderToolbarButton(_Toolbar, "True", "BtnSave", "True", "True", 35, 25,"1", "",true,false,"8288c5a3-3b19-48d3-b139-f7018d2782ee","8288c5a3-3b19-48d3-b139-f7018d2782ee","0fea54a4-c30f-43d1-bcd5-a2b5d9373902");
		
            UIControlBuilder.SetButtonAccessKey(this.BtnSave);
            this.BtnSave.UIModel = this.Model.ElementID;
            this.BtnSave.Action = "SaveClick";
	                            this.BtnCancel = UIControlBuilder.BuilderToolbarButton(_Toolbar, "True", "BtnCancel", "True", "True", 35, 25,"2", "",true,false,"f35cb480-9e8f-4689-aaac-3e9fc9a0c65e","f35cb480-9e8f-4689-aaac-3e9fc9a0c65e","21d20d78-e4a6-46ae-8c58-0ec1c8d4f5d3");
		
            UIControlBuilder.SetButtonAccessKey(this.BtnCancel);
            this.BtnCancel.UIModel = this.Model.ElementID;
            this.BtnCancel.Action = "CancelClick";
	                            this.BtnAdd = UIControlBuilder.BuilderToolbarButton(_Toolbar, "True", "BtnAdd", "True", "True", 35, 25,"3", "",true,false,"19478b02-d2a9-4d7e-b7af-00070c61ff2d","19478b02-d2a9-4d7e-b7af-00070c61ff2d","28f082fe-5a03-420f-9958-f39255f3fb7e");
		
            UIControlBuilder.SetButtonAccessKey(this.BtnAdd);
            this.BtnAdd.UIModel = this.Model.ElementID;
            this.BtnAdd.Action = "NewClick";
	                            this.BtnDelete = UIControlBuilder.BuilderToolbarButton(_Toolbar, "True", "BtnDelete", "True", "True", 35, 25,"4", "",true,false,"0467218f-229b-4954-b2d4-3c5976467f76","0467218f-229b-4954-b2d4-3c5976467f76","2ab40ccc-1555-4ec1-abde-b9939e66ce35");
		
            UIControlBuilder.SetButtonAccessKey(this.BtnDelete);
            this.BtnDelete.UIModel = this.Model.ElementID;
            this.BtnDelete.Action = "DeleteClick";
	                            this.BtnSubmit = UIControlBuilder.BuilderToolbarButton(_Toolbar, "True", "BtnSubmit", "True", "True", 35, 25,"8", "",true,false,"c42c0f21-2fd7-49b2-ac54-62f811747b18","c42c0f21-2fd7-49b2-ac54-62f811747b18","529090d5-8b90-4934-bbfa-bf5057a1e60c");
		
            UIControlBuilder.SetButtonAccessKey(this.BtnSubmit);
            this.BtnSubmit.UIModel = this.Model.ElementID;
            this.BtnSubmit.Action = "SubmitClick";
	                            this.BtnApprove = UIControlBuilder.BuilderToolbarButton(_Toolbar, "True", "BtnApprove", "True", "True", 35, 25,"9", "",true,false,"eb678a04-c7e1-44f1-b175-8f90f9903862","eb678a04-c7e1-44f1-b175-8f90f9903862","650d2ce0-0ba3-4d26-a028-7ee61b18066f");
		
            UIControlBuilder.SetButtonAccessKey(this.BtnApprove);
            this.BtnApprove.UIModel = this.Model.ElementID;
            this.BtnApprove.Action = "ApproveClick";
	                            this.BtnFind = UIControlBuilder.BuilderToolbarButton(_Toolbar, "True", "BtnFind", "True", "True", 35, 25,"12", "",true,false,"27621430-7bc7-4c0e-979e-f0108439d13e","27621430-7bc7-4c0e-979e-f0108439d13e","8c05607b-949e-47ec-a9b7-404dd364dede");
		
            UIControlBuilder.SetButtonAccessKey(this.BtnFind);
            this.BtnFind.UIModel = this.Model.ElementID;
            this.BtnFind.Action = "FindClick";
	                            this.BtnList = UIControlBuilder.BuilderToolbarButton(_Toolbar, "True", "BtnList", "True", "True", 35, 25,"13", "",true,false,"c639596b-5a8c-4fc1-88bb-a3d670cda992","c639596b-5a8c-4fc1-88bb-a3d670cda992","9ef8a1ed-636d-4ee1-9376-9668df5d5fe0");
		
            UIControlBuilder.SetButtonAccessKey(this.BtnList);
            this.BtnList.UIModel = this.Model.ElementID;
            this.BtnList.Action = "ListClick";
	                            this.BtnFirstPage = UIControlBuilder.BuilderToolbarButton(_Toolbar, "True", "BtnFirstPage", "True", "True", 35, 25,"15", "",true,false,"f229e163-fcd1-4f6a-a645-df86c0efd8ec","f229e163-fcd1-4f6a-a645-df86c0efd8ec","46e60ce6-bf04-4e60-8ea4-50d600b2e21f");
		
            UIControlBuilder.SetButtonAccessKey(this.BtnFirstPage);
            this.BtnFirstPage.UIModel = this.Model.ElementID;
            this.BtnFirstPage.Action = "FirstPage";
	                            this.BtnPrevPage = UIControlBuilder.BuilderToolbarButton(_Toolbar, "True", "BtnPrevPage", "True", "True", 35, 25,"16", "",true,false,"5ed368d8-7616-4696-b671-3f1c895f3b43","5ed368d8-7616-4696-b671-3f1c895f3b43","6bda3d30-1f69-49a2-b733-3f7c4fe0be15");
		
            UIControlBuilder.SetButtonAccessKey(this.BtnPrevPage);
            this.BtnPrevPage.UIModel = this.Model.ElementID;
            this.BtnPrevPage.Action = "PrevPage";
	                            this.BtnNextPage = UIControlBuilder.BuilderToolbarButton(_Toolbar, "True", "BtnNextPage", "True", "True", 35, 25,"17", "",true,false,"36afec41-957c-493a-97a4-eddb136af5b4","36afec41-957c-493a-97a4-eddb136af5b4","40bf1840-2b01-49a7-9a86-6614f5c63b49");
		
            UIControlBuilder.SetButtonAccessKey(this.BtnNextPage);
            this.BtnNextPage.UIModel = this.Model.ElementID;
            this.BtnNextPage.Action = "NextPage";
	                            this.BtnLastPage = UIControlBuilder.BuilderToolbarButton(_Toolbar, "True", "BtnLastPage", "True", "True", 35, 25,"18", "",true,false,"dc4a37d1-35de-4016-81dd-582aef3cdeb0","dc4a37d1-35de-4016-81dd-582aef3cdeb0","9387da3b-f962-412f-a763-3939ad87565a");
		
            UIControlBuilder.SetButtonAccessKey(this.BtnLastPage);
            this.BtnLastPage.UIModel = this.Model.ElementID;
            this.BtnLastPage.Action = "LastPage";
	                            this.BtnOutput = UIControlBuilder.BuilderToolbarButton(_Toolbar, "True", "BtnOutput", "True", "True", 35, 25,"23", "",true,false,"688fd549-5a92-49cc-8072-6d5377f6409a","688fd549-5a92-49cc-8072-6d5377f6409a","45e25d88-6cef-4bf9-93b3-82892bed9dac");
		
            UIControlBuilder.SetButtonAccessKey(this.BtnOutput);
            this.BtnOutput.UIModel = this.Model.ElementID;
            this.BtnOutput.Action = "OutputClick";
	                            this.BtnPrint = UIControlBuilder.BuilderToolbarButton(_Toolbar, "True", "BtnPrint", "True", "True", 35, 25,"24", "",true,false,"27b5c615-cde5-458c-be74-833317249568","27b5c615-cde5-458c-be74-833317249568","b61572b0-4b24-4323-b373-4b20d3ef1c90");
		
            UIControlBuilder.SetButtonAccessKey(this.BtnPrint);
            this.BtnPrint.UIModel = this.Model.ElementID;
            this.BtnPrint.Action = "PrintClick";
	
            
            ((UFWebToolbarAdapter)_Toolbar).RemoveControls();
        }



	                   
        private IUFCard _BuilderControl_Card0(IUFContainer container)
        {
            IUFCard _UFCard = UIControlBuilder.BuildCard(container,"Card0",false,"FunctionBar", true, true, "3","","1d9b7ff3-9203-4ca8-95ab-3a42f78ab44f");
			CommonBuilder.GridLayoutPropBuilder(container, _UFCard, 1500, 20, 0, 2, 1, 1, "100");
            CommonBuilder.ContainerGridLayoutPropBuilder(_UFCard, 29, 1, 0, 0, 10, 0, 10, 0);
			InitViewBindingContainer(this, _UFCard,  null, "", "", null, 1, "");
			UIControlBuilder.BuildContainerGridLayout(_UFCard, 0,new GridColumnDef[]{new GridColumnDef(80,bool.Parse("True"),"Spacing"),new GridColumnDef(5,bool.Parse("True"),"Spacing"),new GridColumnDef(100,bool.Parse("True"),"Spacing"),new GridColumnDef(20,bool.Parse("True"),"Spacing"),new GridColumnDef(80,bool.Parse("True"),"Spacing"),new GridColumnDef(5,bool.Parse("True"),"Spacing"),new GridColumnDef(100,bool.Parse("True"),"Spacing"),new GridColumnDef(20,bool.Parse("True"),"Spacing"),new GridColumnDef(80,bool.Parse("True"),"Spacing"),new GridColumnDef(5,bool.Parse("True"),"Spacing"),new GridColumnDef(100,bool.Parse("True"),"Spacing"),new GridColumnDef(20,bool.Parse("True"),"Spacing"),new GridColumnDef(80,bool.Parse("True"),"Spacing"),new GridColumnDef(5,bool.Parse("True"),"Spacing"),new GridColumnDef(100,bool.Parse("True"),"Spacing"),new GridColumnDef(20,bool.Parse("True"),"Spacing"),new GridColumnDef(80,bool.Parse("True"),"Value"),new GridColumnDef(5,bool.Parse("True"),"Spacing"),new GridColumnDef(100,bool.Parse("True"),"Spacing"),new GridColumnDef(20,bool.Parse("True"),"Spacing"),new GridColumnDef(80,bool.Parse("True"),"Spacing"),new GridColumnDef(5,bool.Parse("False"),"Spacing"),new GridColumnDef(100,bool.Parse("True"),"Value"),new GridColumnDef(20,bool.Parse("True"),"Value"),new GridColumnDef(80,bool.Parse("True"),"Value"),new GridColumnDef(5,bool.Parse("True"),"Value"),new GridColumnDef(100,bool.Parse("True"),"Value"),new GridColumnDef(20,bool.Parse("True"),"Value"),new GridColumnDef(1,bool.Parse("False"),"Spacing"),},new GridRowDef[]{new GridRowDef(20,bool.Parse("True")),});
            this.Card0 = _UFCard;

            ///foreach UFCard下的所有控件，增加到此容器





				this.Btn_PRChange = UIControlBuilder.BuilderUFButton(_UFCard, true, "Btn_PRChange", true, true, 80, 20, 0, 0, 1, 1, "100","", this.Model.ElementID,"",false,"2094fa89-31c0-4866-b388-d3facb3e9c89","","2094fa89-31c0-4866-b388-d3facb3e9c89");
	

		
			UIControlBuilder.BuilderUFControl(this.Btn_PRChange, "0");		


				this.ButtonHD = UIControlBuilder.BuilderUFButton(_UFCard, true, "ButtonHD", true, false, 100, 20, 0, 0, 1, 1, "100","", this.Model.ElementID,"",false,"001ab6ce-31be-448d-90b6-85c183a4212c","","001ab6ce-31be-448d-90b6-85c183a4212c");
	

		
			UIControlBuilder.BuilderUFControl(this.ButtonHD, "1");		



		

            
            container.Controls.Add(_UFCard);
            return _UFCard;
        }

	                   
        private IUFCard _BuilderControl_Card3(IUFContainer container)
        {
            IUFCard _UFCard = UIControlBuilder.BuildCard(container,"Card3",false,"none", true, true, "2","","d95905dd-5da0-4c79-84d7-83a1ea6f4be0");
			CommonBuilder.GridLayoutPropBuilder(container, _UFCard, 1500, 450, 0, 1, 1, 1, "100");
            CommonBuilder.ContainerGridLayoutPropBuilder(_UFCard, 1, 3, 0, 10, 10, 0, 10, 0);
			InitViewBindingContainer(this, _UFCard,  null, "", "", null, 1, "");
			UIControlBuilder.BuildContainerGridLayout(_UFCard, 10,new GridColumnDef[]{new GridColumnDef(1479,bool.Parse("False"),"Value"),},new GridRowDef[]{new GridRowDef(100,bool.Parse("True")),new GridRowDef(200,bool.Parse("False")),new GridRowDef(200,bool.Parse("False")),});
            this.Card3 = _UFCard;

            ///foreach UFCard下的所有控件，增加到此容器





	
			_BuilderControl_Card4(_UFCard);

		
			UIControlBuilder.BuilderUFControl(this.Card4, "1");		


	
			_BuilderControl_TabControl2(_UFCard);

		
			UIControlBuilder.BuilderUFControl(this.TabControl2, "2");		


	
			_BuilderControl_TabControl3(_UFCard);

		
			UIControlBuilder.BuilderUFControl(this.TabControl3, "3");		



			

            
            container.Controls.Add(_UFCard);
            return _UFCard;
        }

	                   
        private IUFCard _BuilderControl_Card4(IUFContainer container)
        {
            IUFCard _UFCard = UIControlBuilder.BuildCard(container,"Card4",true,"none", true, true, "1","7e2dbe37-5f35-4b35-a5d7-92e413550ac7","8e09eadc-2a8d-444d-a438-227304b0a79a");
			CommonBuilder.GridLayoutPropBuilder(container, _UFCard, 1479, 100, 0, 0, 1, 1, "100");
            CommonBuilder.ContainerGridLayoutPropBuilder(_UFCard, 29, 4, 0, 5, 0, 0, 0, 0);
			InitViewBindingContainer(this, _UFCard,  this.Model.PRChangeDoc, "PRChangeDoc", "", null, 1, "请购订单变更单");
			UIControlBuilder.BuildContainerGridLayout(_UFCard, 5,new GridColumnDef[]{new GridColumnDef(80,bool.Parse("True"),"Title"),new GridColumnDef(5,bool.Parse("True"),"Spacing"),new GridColumnDef(100,bool.Parse("True"),"Value"),new GridColumnDef(20,bool.Parse("True"),"Spacing"),new GridColumnDef(80,bool.Parse("True"),"Title"),new GridColumnDef(5,bool.Parse("True"),"Spacing"),new GridColumnDef(100,bool.Parse("True"),"Value"),new GridColumnDef(20,bool.Parse("True"),"Spacing"),new GridColumnDef(80,bool.Parse("True"),"Title"),new GridColumnDef(5,bool.Parse("True"),"Spacing"),new GridColumnDef(100,bool.Parse("True"),"Value"),new GridColumnDef(20,bool.Parse("False"),"Spacing"),new GridColumnDef(80,bool.Parse("True"),"Value"),new GridColumnDef(5,bool.Parse("True"),"Value"),new GridColumnDef(100,bool.Parse("True"),"Value"),new GridColumnDef(20,bool.Parse("True"),"Value"),new GridColumnDef(80,bool.Parse("True"),"Value"),new GridColumnDef(5,bool.Parse("True"),"Value"),new GridColumnDef(100,bool.Parse("True"),"Value"),new GridColumnDef(20,bool.Parse("True"),"Value"),new GridColumnDef(80,bool.Parse("True"),"Value"),new GridColumnDef(5,bool.Parse("True"),"Value"),new GridColumnDef(100,bool.Parse("True"),"Value"),new GridColumnDef(20,bool.Parse("True"),"Value"),new GridColumnDef(80,bool.Parse("True"),"Value"),new GridColumnDef(5,bool.Parse("True"),"Value"),new GridColumnDef(164,bool.Parse("True"),"Value"),new GridColumnDef(20,bool.Parse("True"),"Value"),new GridColumnDef(1,bool.Parse("False"),"Spacing"),},new GridRowDef[]{new GridRowDef(20,bool.Parse("True")),new GridRowDef(20,bool.Parse("True")),new GridRowDef(20,bool.Parse("True")),new GridRowDef(1,bool.Parse("False")),});
            this.Card4 = _UFCard;

            ///foreach UFCard下的所有控件，增加到此容器





				this.lblID85 = UIControlBuilder.BuilderUFLabel(_UFCard, "lblID85", "", "False", "True", "Right", 153, 20, 0, 0, 1, 1, "100","7e2dbe37-5f35-4b35-a5d7-92e413550ac7","9457a9bf-6583-44af-aef7-386c999466ac");


								

		
			UIControlBuilder.BuilderUFControl(this.lblID85, "0");		


				this.ID85 = UIControlBuilder.BuilderNumberControl(_UFCard, "ID85", "False", "False", "True", "Left", 7, 60, 0, 152, 20, 0, 0, 1, 1, NumbericType.Numberic, "100",79228162514264337593543950335m, -79228162514264337593543950335m
			,TextAlign.Right,0,true,false,true,"lblID85","8.0","7e2dbe37-5f35-4b35-a5d7-92e413550ac7","3e554de4-b85f-4cf5-baf4-27ecdb9d435b",null,null,null, null);
			UIControlBuilder.BuilderUIFieldBindingControl(this, this.ID85, "False", "ID", this.Model.PRChangeDoc, this.Model.PRChangeDoc.FieldID, "PRChangeDoc");
	
		
			UIControlBuilder.BuilderUFControl(this.ID85, "1");		
		 

				this.lblSysVersion89 = UIControlBuilder.BuilderUFLabel(_UFCard, "lblSysVersion89", "", "False", "True", "Right", 153, 20, 0, 0, 1, 1, "100","f28b2c75-1287-4fdc-b370-268e0b4d1420","9bed8f47-9b1d-469f-bcf1-0ccafe217505");


								

		
			UIControlBuilder.BuilderUFControl(this.lblSysVersion89, "2");		


				this.SysVersion89 = UIControlBuilder.BuilderNumberControl(_UFCard, "SysVersion89", "True", "False", "True", "Left", 7, 60, 0, 152, 20, 0, 0, 1, 1, NumbericType.Numberic, "100",79228162514264337593543950335m, -79228162514264337593543950335m
			,TextAlign.Right,0,true,false,true,"lblSysVersion89","8.0","f28b2c75-1287-4fdc-b370-268e0b4d1420","19279950-d220-407a-8cbb-dbf770ec44a9",null,null,null, null);
			UIControlBuilder.BuilderUIFieldBindingControl(this, this.SysVersion89, "False", "SysVersion", this.Model.PRChangeDoc, this.Model.PRChangeDoc.FieldSysVersion, "PRChangeDoc");
	
		
			UIControlBuilder.BuilderUFControl(this.SysVersion89, "3");		
		 

				this.lblDocmentType257 = UIControlBuilder.BuilderUFLabel(_UFCard, "lblDocmentType257", "", "True", "True", "Right", 80, 20, 0, 0, 1, 1, "100","47af95be-3b3a-487b-b9a2-81522cb69470","47af95be-3b3a-487b-b9a2-81522cb69470");

			UIControlBuilder.SetLabelFormReference(this.lblDocmentType257,"f643854b-b2aa-40f1-86de-e94515e0dbdc",true,992, 504);
			//foreach input parameter
	    	ScriptBuilder.BuildFormLinkInScript(this.lblDocmentType257,"lblDocmentType257", new FormLinkInParam[]{new FormLinkInParam("@ID","","Key","DocmentType257",1), });
			//foreach output set data
	    	ScriptBuilder.BuildFormLinkOutScript(this.lblDocmentType257,"lblDocmentType257", new FormLinkOutParam[]{new FormLinkOutParam("ID","","Key","DocmentType257"),new FormLinkOutParam("Code","","Value","DocmentType257"),new FormLinkOutParam("Name","","Text","DocmentType257"), });
		
								

		
			UIControlBuilder.BuilderUFControl(this.lblDocmentType257, "4");		


				this.DocmentType257 = UIControlBuilder.BuilderRefrenceControl(_UFCard,"DocmentType257",true,true, true,100, 20, 2, 0, 1, 1, "100","5",false,false,true,"lblDocmentType257","3f51432f-6cbd-4af9-8efd-fe12a64cf3cf","bde05899-4f0b-4ba0-8a50-c480f0661f8a");
			UIControlBuilder.BuilderUIFieldBindingControl(this, this.DocmentType257, "False", "DocmentType", this.Model.PRChangeDoc, this.Model.PRChangeDoc.FieldDocmentType, "PRChangeDoc");
			UIControlBuilder.SetReferenceControlRefInfo(this.DocmentType257,"d5558995-aaba-414c-a852-088547219416", 580,408, "Name","Code","ID", this.Model.PRChangeDoc.FieldDocmentType_Code,this.Model.PRChangeDoc.FieldDocmentType_Name);
            //foreach Reference's input filter parameter
            //foreach Reference's output set data, columnID锛屽弬鐓ц繑鍥炲垪鐨凢ieldID
			ScriptBuilder.BuildReferenceControlOuputScript(this.DocmentType257,"DocmentType257",new ReferenceOutputParam[]{new ReferenceOutputParam("","ID",""),new ReferenceOutputParam("","Code",""),new ReferenceOutputParam("","Name",""),});
				

		
			UIControlBuilder.BuilderUFControl(this.DocmentType257, "5");		
		 

				this.lblDocNo44 = UIControlBuilder.BuilderUFLabel(_UFCard, "lblDocNo44", "", "True", "True", "Right", 80, 20, 0, 1, 1, 1, "100","d365b26f-d9d5-466e-a59c-e120ab0113a1","346b6c66-e82d-4c3e-ba1f-b7dc5706bb4a");


								

		
			UIControlBuilder.BuilderUFControl(this.lblDocNo44, "6");		


				this.DocNo44 = UIControlBuilder.BuilderTextBox(_UFCard, "DocNo44", "False", "True", "True", "False", "Left", 0, 60, 0, 100, 20, 2, 1, 1, 1, "False", "100"
			,"",TextBoxMode.SingleLine,TextAlign.Left, true,false,"lblDocNo44","","50","d365b26f-d9d5-466e-a59c-e120ab0113a1","55abbe81-cfc1-4c5f-91a1-b54a386e3220");
			UIControlBuilder.BuilderUIFieldBindingControl(this, this.DocNo44, "False", "DocNo", this.Model.PRChangeDoc, this.Model.PRChangeDoc.FieldDocNo, "PRChangeDoc");


		
			UIControlBuilder.BuilderUFControl(this.DocNo44, "7");		
		 

				this.lblBusinessDate122 = UIControlBuilder.BuilderUFLabel(_UFCard, "lblBusinessDate122", "", "True", "True", "Right", 80, 20, 0, 2, 1, 1, "100","9425e451-4953-4ff1-895c-3da55129bbb4","9a50c895-efed-4a25-bd96-98e9a473f742");


								

		
			UIControlBuilder.BuilderUFControl(this.lblBusinessDate122, "8");		


				this.BusinessDate122 = UIControlBuilder.BuilderDatePicker(_UFCard, "BusinessDate122", false, true, true, "Date","Left", 3, 60, 0, 100, 20, 2, 2, 1, 1, "100",true,false,"lblBusinessDate122","9425e451-4953-4ff1-895c-3da55129bbb4","9b26129c-dd62-4a74-af18-8705744ee26a");
			UIControlBuilder.BuilderUIFieldBindingControl(this, this.BusinessDate122, "False", "BusinessDate", this.Model.PRChangeDoc, this.Model.PRChangeDoc.FieldBusinessDate, "PRChangeDoc");


		
			UIControlBuilder.BuilderUFControl(this.BusinessDate122, "9");		
		 

				this.lblPRDocNo215 = UIControlBuilder.BuilderUFLabel(_UFCard, "lblPRDocNo215", "", "True", "True", "Right", 80, 20, 4, 0, 1, 1, "100","cfaaad0d-53e0-424a-91a3-0f4d0b5b1ace","cf74b52d-3933-4d78-9554-643e8746d45a");


								

		
			UIControlBuilder.BuilderUFControl(this.lblPRDocNo215, "10");		


				this.PRDocNo215 = UIControlBuilder.BuilderTextBox(_UFCard, "PRDocNo215", "True", "True", "False", "False", "Left", 0, 60, 0, 100, 20, 6, 0, 1, 1, "False", "100"
			,"",TextBoxMode.SingleLine,TextAlign.Left, true,false,"lblPRDocNo215","","50","cfaaad0d-53e0-424a-91a3-0f4d0b5b1ace","d2beb508-c333-496b-ac75-c028ebd4f6bb");
			UIControlBuilder.BuilderUIFieldBindingControl(this, this.PRDocNo215, "False", "PRDocNo", this.Model.PRChangeDoc, this.Model.PRChangeDoc.FieldPRDocNo, "PRChangeDoc");


		
			UIControlBuilder.BuilderUFControl(this.PRDocNo215, "11");		
		 

				this.lblRemake197 = UIControlBuilder.BuilderUFLabel(_UFCard, "lblRemake197", "", "True", "True", "Right", 80, 20, 12, 0, 1, 1, "100","9654a472-957d-47d7-a575-3d6ea74fe38a","3a2ea8ea-5746-45e2-a15f-be3dd5899ec1");


								

		
			UIControlBuilder.BuilderUFControl(this.lblRemake197, "14");		


				this.Remake197 = UIControlBuilder.BuilderTextBox(_UFCard, "Remake197", "True", "True", "True", "True", "Left", 0, 60, 0, 100, 45, 14, 0, 1, 2, "False", "100"
			,"",TextBoxMode.MultiLine,TextAlign.Left, true,false,"lblRemake197","","50","9654a472-957d-47d7-a575-3d6ea74fe38a","cc15c00c-d380-488a-846c-0ac5e64273c7");
			UIControlBuilder.BuilderUIFieldBindingControl(this, this.Remake197, "False", "Remake", this.Model.PRChangeDoc, this.Model.PRChangeDoc.FieldRemake, "PRChangeDoc");


		
			UIControlBuilder.BuilderUFControl(this.Remake197, "15");		
		 

				this.lblStatus2493 = UIControlBuilder.BuilderUFLabel(_UFCard, "lblStatus2493", "", "True", "True", "Right", 80, 20, 8, 0, 1, 1, "100","d315eca1-ec98-461d-804e-14818cfd7f5f","778a46d1-6cd0-46cb-9084-e0e5e8f01b02");


								

		
			UIControlBuilder.BuilderUFControl(this.lblStatus2493, "16");		


		        this.Status2493 = UIControlBuilder.BuilderDropDownList(_UFCard, "Status2493", "UFIDA.U9.Cust.OTD.ZF.SHXM3003.OTDBE.PRChangeBE.PRChangeDocStatusEnum", true,  true, false, "Left", 2, 60, 0, 100, 20, 10, 0, 1, 1, "100",true,false,"lblStatus2493","d315eca1-ec98-461d-804e-14818cfd7f5f","32e5e80b-0e4f-4dcd-9e5a-fee657bf289c");
			UIControlBuilder.BuilderUIFieldBindingControl(this, this.Status2493, "False", "Status", this.Model.PRChangeDoc, this.Model.PRChangeDoc.FieldStatus, "PRChangeDoc");
			EnumTypeList.Add("UFIDA.U9.Cust.OTD.ZF.SHXM3003.OTDBE.PRChangeBE.PRChangeDocStatusEnum");
			EnumControlsMap.Add(this.Status2493, _UFCard);
		

		
			UIControlBuilder.BuilderUFControl(this.Status2493, "17");		
		 

				this.FlexFieldPicker0 = UIControlBuilder.BuilderFlexFieldPicker(_UFCard, "FlexFieldPicker0", "True", "True", "True", "Left", 0, "", '.', 60, 0, 100, 20, 14, 2, 1, 1, "100"
				,FlexFieldType.Key,true,false,"","","","67cac744-e1fb-46f4-8301-a2e31df8e9f6");
			UIControlBuilder.BuilderUIFieldBindingControl(this, this.FlexFieldPicker0, "False", "", null, null, "");
			if(this.FlexFieldPicker0.FlexFieldType==FlexFieldType.Key)
			{

			}
			else
			{		
					}
								

		
			UIControlBuilder.BuilderUFControl(this.FlexFieldPicker0, "18");		
		 


						
			this.DocmentType257.IsMultiOrg  = false ;
			this.lblDocmentType257.SetMultiOrgInfo(this.DocmentType257,false);
			
											

            
            container.Controls.Add(_UFCard);
            return _UFCard;
        }

				

	         private void _BuilderControl_TabControl2(IUFContainer container)
        {
            IUFTabControl _UFTabControl = UIControlBuilder.BuildTabControl(container,"TabControl2",true, true, "2",EventResponseType.Client,1479, 200, 0, 1, 1, 1, "100");
            ///foreach UFTabbedPane下的所有控件，增加到此容器
            _UFTabControl.TabPages.Add(_BuilderControl_TabPage5(_UFTabControl));
            this.TabControl2 = _UFTabControl;
        }

	        private IUFTabPage _BuilderControl_TabPage5(IUFTabControl container)
        {
            IUFTabPage _UFTabPage = UIControlBuilder.BuildTabPageControl(container,"TabPage5",true, true, "0","099d4edf-8647-4a75-b169-f5b9e61277ac","099d4edf-8647-4a75-b169-f5b9e61277ac");
            CommonBuilder.ContainerGridLayoutPropBuilder(_UFTabPage, 2, 2, 0, 5, 10, 0, 10, 0);
			InitViewBindingContainer(this, _UFTabPage,  null, "", "", null, 1, "");
			UIControlBuilder.BuildContainerGridLayout(_UFTabPage, 5,new GridColumnDef[]{new GridColumnDef(1451,bool.Parse("False"),"Title"),new GridColumnDef(1,bool.Parse("True"),"Value"),},new GridRowDef[]{new GridRowDef(150,bool.Parse("True")),new GridRowDef(1,bool.Parse("False")),});
            ///foreach UFTab下的所有控件，增加到此容器





	
			_BuilderControl_DataGrid10(_UFTabPage);

		
			UIControlBuilder.BuilderUFControl(this.DataGrid10, "0");		



	

            this.TabPage5 = _UFTabPage;
            return _UFTabPage;
        }

				





       
        private void _BuilderControl_DataGrid10(IUFContainer container)
        {
            IUFDataGrid _UFGrid = UIControlBuilder.BuildGridControl("DataGrid10", UFSoft.UBF.UI.ControlModel.EditStatus.Edit, false, false,false,false,false,true,20,false, false) ;
  			UIControlBuilder.BuilderUFControl(_UFGrid, "True", "True", "0");
			CommonBuilder.GridLayoutPropBuilder(container, _UFGrid, 1452, 156, 0, 0, 2, 2, "100");
			InitViewBindingContainer(this, _UFGrid,  this.Model.PRChangeDoc_BeforePRChangeDocLine, "PRChangeDoc_BeforePRChangeDocLine", "", null, 20, "请购订单变更单.Misc.变更前行信息");
			((UFSoft.UBF.UI.WebControlAdapter.UFWebDataGridAdapter)_UFGrid).PagingStrategy=UFSoft.UBF.UI.ControlModel.GridPagingStrategy.Auto;
			_UFGrid.AllowSelectAllPage=false;
			((UFSoft.UBF.UI.WebControls.UFGrid)_UFGrid).IsSumAllData=false;
		        ((UFSoft.UBF.UI.WebControls.UFGrid)_UFGrid).IsSumSelectedData=false;
            this.DataGrid10 = _UFGrid;
            container.Controls.Add(_UFGrid);



			IUFDataGridColumn column ;
			GridColumn gridColumn ;
	                     
			column = GridControlBuilder.GridColumnBuilder(_UFGrid,"ID88","NumberColumnModel", "", 0,this.Model.PRChangeDoc_BeforePRChangeDocLine.Fields["ID"]/*ID*/,"ID", true, false, true, false, false, false, 7, 100, "19.0",true, false,"","6918e96b-a9fc-4edd-a76d-76ce53998214","6918e96b-a9fc-4edd-a76d-76ce53998214","bd5cbc03-fc8a-49e0-a4bc-8631da8be014");
			GridControlBuilder.GridNumberColumnBuilder((IUFNumberColumn)column, NumbericType.Numberic, 79228162514264337593543950335m, -79228162514264337593543950335m, null, null, null, null
			,true,"",false,"1","1");
	  
		 	                     
			column = GridControlBuilder.GridColumnBuilder(_UFGrid,"SysVersion92","NumberColumnModel", "", 0,this.Model.PRChangeDoc_BeforePRChangeDocLine.Fields["SysVersion"]/*SysVersion*/,"SysVersion", false, false, true, false, false, true, 7, 100, "19.0",true, false,"0","945bc9da-a6ff-46c8-ba36-6a4557260e72","945bc9da-a6ff-46c8-ba36-6a4557260e72","4f2dcfd3-d33e-42e0-a1ee-42a08fff53ad");
			GridControlBuilder.GridNumberColumnBuilder((IUFNumberColumn)column, NumbericType.Numberic, 79228162514264337593543950335m, -79228162514264337593543950335m, null, null, null, null
			,true,"",false,"1","1");
	  
		 	                     
			column = GridControlBuilder.GridColumnBuilder(_UFGrid,"DocLineNo2","TextBoxColumnModel", "", 0,this.Model.PRChangeDoc_BeforePRChangeDocLine.Fields["DocLineNo"]/*DocLineNo*/,"DocLineNo", false, true, false, false, false, true, 0, 120, "50",true, false,"","d009bb2b-d64d-4701-91f7-182b23b0142c","d009bb2b-d64d-4701-91f7-182b23b0142c","73206318-8cff-4716-836d-f95d98495bc8");
         
			GridControlBuilder.GridTextBoxColumnBuilder((IUFTextBoxColumn)column,"",TextAlign.Left, false,"",false,"1","1","50") ;          
	  
		 	                     
			column = GridControlBuilder.GridColumnBuilder(_UFGrid,"PRDocLineNo2","TextBoxColumnModel", "", 0,this.Model.PRChangeDoc_BeforePRChangeDocLine.Fields["PRDocLineNo"]/*PRDocLineNo*/,"PRDocLineNo", false, true, false, false, false, true, 0, 150, "50",true, false,"","45a3a0e7-5f4e-49bc-8365-eaa3397ac43a","45a3a0e7-5f4e-49bc-8365-eaa3397ac43a","b7d237e4-d8c6-4747-9628-00e218b3cb36");
         
			GridControlBuilder.GridTextBoxColumnBuilder((IUFTextBoxColumn)column,"",TextAlign.Left, false,"",false,"1","1","50") ;          
	  
		 	                     
			column = GridControlBuilder.GridColumnBuilder(_UFGrid,"ItemMaster0","ReferenceColumnModel", "", 0,this.Model.PRChangeDoc_BeforePRChangeDocLine.Fields["ItemMaster"]/*ItemMaster*/,"ItemMaster", false, true, true, false, false, true, 7, 100, "19.0",true, false,"","4885ec39-0dc7-4a9f-b808-c995ad68d642","4885ec39-0dc7-4a9f-b808-c995ad68d642","8708aa1e-123e-41ba-a5a7-1fafc1cfab73");
			GridControlBuilder.GridReferenceColumnBuilder((IUFFldReferenceColumn)column, ColumnTextAlign.Right, "ID", "Code", "Name", this.Model.PRChangeDoc_BeforePRChangeDocLine.FieldItemMaster_Code/*ItemMaster_Code*/, this.Model.PRChangeDoc_BeforePRChangeDocLine.FieldItemMaster_Name/*ItemMaster_Name*/, "beedebc3-5398-46b5-a237-5a3a4d13ad4f"
			,false,true,580,408);
            ((IUFFldReferenceColumn)column).CtrlId = "8708aa1e-123e-41ba-a5a7-1fafc1cfab73";
 			((IUFFldReferenceColumn)column).IsMultiOrg  = false ;
           //foreach Reference's input filter parameter

            //foreach Reference's output set data
							
							
							
							
							
							
							
							
							
							
							
							
							
							
							
							
            ((IUFFldReferenceColumn)column).ApplyRefRelations();
			  
		 	                     
			column = GridControlBuilder.GridColumnBuilder(_UFGrid,"SPECS0","TextBoxColumnModel", "", 0,this.Model.PRChangeDoc_BeforePRChangeDocLine.Fields["SPECS"]/*SPECS*/,"SPECS", false, true, true, false, false, true, 0, 100, "50",true, false,"","6b04556c-99ab-46fd-841f-e4fe913c4240","6b04556c-99ab-46fd-841f-e4fe913c4240","af612402-a9fa-4cf3-8eb9-d47e4a33f3ac");
         
			GridControlBuilder.GridTextBoxColumnBuilder((IUFTextBoxColumn)column,"",TextAlign.Left, false,"",false,"1","1","50") ;          
	  
		 	                     
			column = GridControlBuilder.GridColumnBuilder(_UFGrid,"UOM0","ReferenceColumnModel", "", 0,this.Model.PRChangeDoc_BeforePRChangeDocLine.Fields["UOM"]/*UOM*/,"UOM", false, true, true, false, false, true, 7, 100, "19.0",true, false,"","12014947-b5de-4fd2-b8ee-830a6bba94cc","12014947-b5de-4fd2-b8ee-830a6bba94cc","93add43c-d0df-40ff-81eb-94d3b5392f31");
			GridControlBuilder.GridReferenceColumnBuilder((IUFFldReferenceColumn)column, ColumnTextAlign.Right, "ID", "Code", "Name", this.Model.PRChangeDoc_BeforePRChangeDocLine.FieldUOM_Code/*UOM_Code*/, this.Model.PRChangeDoc_BeforePRChangeDocLine.FieldUOM_Name/*UOM_Name*/, "f60347ca-0114-4396-891f-efd65b825db1"
			,false,true,580,408);
            ((IUFFldReferenceColumn)column).CtrlId = "93add43c-d0df-40ff-81eb-94d3b5392f31";
 			((IUFFldReferenceColumn)column).IsMultiOrg  = false ;
           //foreach Reference's input filter parameter

            //foreach Reference's output set data
							
							
							
							
							
							
							
							
							
							
            ((IUFFldReferenceColumn)column).ApplyRefRelations();
			  
		 	                     
			column = GridControlBuilder.GridColumnBuilder(_UFGrid,"ReqQtyNum2","NumberColumnModel", "", 8,this.Model.PRChangeDoc_BeforePRChangeDocLine.Fields["ReqQtyNum"]/*ReqQtyNum*/,"ReqQtyNum", false, true, false, false, false, true, 8, 120, "24.9",true, false,"0","e0f8fd12-5d01-44c7-a4b3-4159d6db527e","e0f8fd12-5d01-44c7-a4b3-4159d6db527e","3b8e6ad8-3cb6-4be5-88c8-145d2fc79f27");
			GridControlBuilder.GridNumberColumnBuilder((IUFNumberColumn)column, NumbericType.Numberic, 79228162514264337593543950335m, -79228162514264337593543950335m, null, null, null, null
			,true,"",false,"1","1");
	  
		 	                     
			column = GridControlBuilder.GridColumnBuilder(_UFGrid,"RequiredDeliveryDate2","DatePickerColumnModel", "", 0,this.Model.PRChangeDoc_BeforePRChangeDocLine.Fields["RequiredDeliveryDate"]/*RequiredDeliveryDate*/,"RequiredDeliveryDate", false, true, false, false, false, true, 3, 120, "10",true, false,"","38fffd2a-d7fa-4bcd-a5ff-f08d8d8a63c2","38fffd2a-d7fa-4bcd-a5ff-f08d8d8a63c2","9866d82e-97d1-408e-a886-6b89eeab0d33");
                   
			((IUFDatePickerColumn)column).DateTimeType = DateTimeType.Date;
            ((IUFDatePickerColumn)column).DateTimeFormat = CurrentState._I18N._DateTimeFormatInfo;
	  
		 	                     
			column = GridControlBuilder.GridColumnBuilder(_UFGrid,"TextBoxColumn3","TextBoxColumnModel", "", 0,null,"", false, true, true, false, false, true, 0, 100, "",true, false,"","5773244b-47a5-4bd7-87cf-b4938d4229a4","","3f59554d-f538-4f6d-9cb7-129ee152dae0");
         
			GridControlBuilder.GridTextBoxColumnBuilder((IUFTextBoxColumn)column,"",TextAlign.Left, false,"",false,"1","1","") ;          
	  
		 
        }

	         private void _BuilderControl_TabControl3(IUFContainer container)
        {
            IUFTabControl _UFTabControl = UIControlBuilder.BuildTabControl(container,"TabControl3",true, true, "3",EventResponseType.Client,1479, 200, 0, 2, 1, 1, "100");
            ///foreach UFTabbedPane下的所有控件，增加到此容器
            _UFTabControl.TabPages.Add(_BuilderControl_TabPage6(_UFTabControl));
            this.TabControl3 = _UFTabControl;
        }

	        private IUFTabPage _BuilderControl_TabPage6(IUFTabControl container)
        {
            IUFTabPage _UFTabPage = UIControlBuilder.BuildTabPageControl(container,"TabPage6",true, true, "0","f0193b37-bf25-499a-bb36-5f1552857f3a","f0193b37-bf25-499a-bb36-5f1552857f3a");
            CommonBuilder.ContainerGridLayoutPropBuilder(_UFTabPage, 2, 2, 0, 0, 10, 0, 10, 0);
			InitViewBindingContainer(this, _UFTabPage,  null, "", "", null, 1, "");
			UIControlBuilder.BuildContainerGridLayout(_UFTabPage, 0,new GridColumnDef[]{new GridColumnDef(1451,bool.Parse("False"),"Value"),new GridColumnDef(1,bool.Parse("True"),"Spacing"),},new GridRowDef[]{new GridRowDef(150,bool.Parse("True")),new GridRowDef(1,bool.Parse("False")),});
            ///foreach UFTab下的所有控件，增加到此容器





	
			_BuilderControl_DataGrid11(_UFTabPage);

		
			UIControlBuilder.BuilderUFControl(this.DataGrid11, "0");		



	

            this.TabPage6 = _UFTabPage;
            return _UFTabPage;
        }

				





       
        private void _BuilderControl_DataGrid11(IUFContainer container)
        {
            IUFDataGrid _UFGrid = UIControlBuilder.BuildGridControl("DataGrid11", UFSoft.UBF.UI.ControlModel.EditStatus.Edit, true, false,false,false,false,true,20,false, false) ;
  			UIControlBuilder.BuilderUFControl(_UFGrid, "True", "True", "0");
			CommonBuilder.GridLayoutPropBuilder(container, _UFGrid, 1451, 151, 0, 0, 1, 2, "100");
			InitViewBindingContainer(this, _UFGrid,  this.Model.PRChangeDoc_AfterPRChangeDocLine, "PRChangeDoc_AfterPRChangeDocLine", "", null, 20, "请购订单变更单.Misc.变更后行信息");
			((UFSoft.UBF.UI.WebControlAdapter.UFWebDataGridAdapter)_UFGrid).PagingStrategy=UFSoft.UBF.UI.ControlModel.GridPagingStrategy.Auto;
			_UFGrid.AllowSelectAllPage=false;
			((UFSoft.UBF.UI.WebControls.UFGrid)_UFGrid).IsSumAllData=false;
		        ((UFSoft.UBF.UI.WebControls.UFGrid)_UFGrid).IsSumSelectedData=false;
            this.DataGrid11 = _UFGrid;
            container.Controls.Add(_UFGrid);



			IUFDataGridColumn column ;
			GridColumn gridColumn ;
	                     
			column = GridControlBuilder.GridColumnBuilder(_UFGrid,"ID87","NumberColumnModel", "", 0,this.Model.PRChangeDoc_AfterPRChangeDocLine.Fields["ID"]/*ID*/,"ID", true, false, true, false, false, false, 7, 100, "19.0",true, false,"","5742ccdd-dac4-451b-8b50-92a5082d68c6","5742ccdd-dac4-451b-8b50-92a5082d68c6","b8fe9c88-e80c-4328-9ddc-c331e8db3b3c");
			GridControlBuilder.GridNumberColumnBuilder((IUFNumberColumn)column, NumbericType.Numberic, 79228162514264337593543950335m, -79228162514264337593543950335m, null, null, null, null
			,true,"",false,"1","1");
	  
		 	                     
			column = GridControlBuilder.GridColumnBuilder(_UFGrid,"SysVersion91","NumberColumnModel", "", 0,this.Model.PRChangeDoc_AfterPRChangeDocLine.Fields["SysVersion"]/*SysVersion*/,"SysVersion", false, false, true, false, false, true, 7, 100, "19.0",true, false,"0","f282b572-0d30-405d-bfdf-8dc71e66a023","f282b572-0d30-405d-bfdf-8dc71e66a023","cea3cd88-a102-45d0-b9fd-6c153a3b4917");
			GridControlBuilder.GridNumberColumnBuilder((IUFNumberColumn)column, NumbericType.Numberic, 79228162514264337593543950335m, -79228162514264337593543950335m, null, null, null, null
			,true,"",false,"1","1");
	  
		 	                     
			column = GridControlBuilder.GridColumnBuilder(_UFGrid,"DocLineNo1","TextBoxColumnModel", "", 0,this.Model.PRChangeDoc_AfterPRChangeDocLine.Fields["DocLineNo"]/*DocLineNo*/,"DocLineNo", false, true, false, false, false, true, 0, 120, "50",true, false,"","44c5786e-3853-457a-9935-b8a2bcafab0a","44c5786e-3853-457a-9935-b8a2bcafab0a","644ac932-18c7-4979-86f7-e1bb54cc5000");
         
			GridControlBuilder.GridTextBoxColumnBuilder((IUFTextBoxColumn)column,"",TextAlign.Left, false,"",false,"1","1","50") ;          
	  
		 	                     
			column = GridControlBuilder.GridColumnBuilder(_UFGrid,"PRDocLineNo1","TextBoxColumnModel", "", 0,this.Model.PRChangeDoc_AfterPRChangeDocLine.Fields["PRDocLineNo"]/*PRDocLineNo*/,"PRDocLineNo", false, true, false, false, false, true, 0, 150, "50",true, false,"","ae6421eb-3d6e-4ff4-84f3-33a041f29f7d","ae6421eb-3d6e-4ff4-84f3-33a041f29f7d","92755fe5-73cb-4dae-95a0-5eeab02bc6fe");
         
			GridControlBuilder.GridTextBoxColumnBuilder((IUFTextBoxColumn)column,"",TextAlign.Left, false,"",false,"1","1","50") ;          
	  
		 	                     
			column = GridControlBuilder.GridColumnBuilder(_UFGrid,"ItemMaster1","ReferenceColumnModel", "", 0,this.Model.PRChangeDoc_AfterPRChangeDocLine.Fields["ItemMaster"]/*ItemMaster*/,"ItemMaster", false, true, true, false, false, true, 7, 100, "19.0",true, false,"","53744e8b-eb76-4b3b-b4bc-367afd1eb434","53744e8b-eb76-4b3b-b4bc-367afd1eb434","97f45581-a4d8-490d-8c51-6aebe67ad7ec");
			GridControlBuilder.GridReferenceColumnBuilder((IUFFldReferenceColumn)column, ColumnTextAlign.Right, "ID", "Code", "Name", this.Model.PRChangeDoc_AfterPRChangeDocLine.FieldItemMaster_Code/*ItemMaster_Code*/, this.Model.PRChangeDoc_AfterPRChangeDocLine.FieldItemMaster_Name/*ItemMaster_Name*/, "beedebc3-5398-46b5-a237-5a3a4d13ad4f"
			,false,true,580,408);
            ((IUFFldReferenceColumn)column).CtrlId = "97f45581-a4d8-490d-8c51-6aebe67ad7ec";
 			((IUFFldReferenceColumn)column).IsMultiOrg  = false ;
           //foreach Reference's input filter parameter

            //foreach Reference's output set data
							
							
							
							
							
							
							
							
							
							
							
							
							
							
							
							
            ((IUFFldReferenceColumn)column).ApplyRefRelations();
			  
		 	                     
			column = GridControlBuilder.GridColumnBuilder(_UFGrid,"SPECS1","TextBoxColumnModel", "", 0,this.Model.PRChangeDoc_AfterPRChangeDocLine.Fields["SPECS"]/*SPECS*/,"SPECS", false, true, true, false, false, true, 0, 100, "50",true, false,"","bee61f19-c091-48cc-8bda-f6618a66bb77","bee61f19-c091-48cc-8bda-f6618a66bb77","0b332bf7-ba79-49cc-829e-83b04aeaa7cb");
         
			GridControlBuilder.GridTextBoxColumnBuilder((IUFTextBoxColumn)column,"",TextAlign.Left, false,"",false,"1","1","50") ;          
	  
		 	                     
			column = GridControlBuilder.GridColumnBuilder(_UFGrid,"UOM1","ReferenceColumnModel", "", 0,this.Model.PRChangeDoc_AfterPRChangeDocLine.Fields["UOM"]/*UOM*/,"UOM", false, true, true, false, false, true, 7, 100, "19.0",true, false,"","5617dba7-1852-40f0-90f2-76550838f7ab","5617dba7-1852-40f0-90f2-76550838f7ab","fbfbcfff-9983-456d-b4aa-d2c2d451d1df");
			GridControlBuilder.GridReferenceColumnBuilder((IUFFldReferenceColumn)column, ColumnTextAlign.Right, "ID", "Code", "Name", this.Model.PRChangeDoc_AfterPRChangeDocLine.FieldUOM_Code/*UOM_Code*/, this.Model.PRChangeDoc_AfterPRChangeDocLine.FieldUOM_Name/*UOM_Name*/, "f60347ca-0114-4396-891f-efd65b825db1"
			,false,true,580,408);
            ((IUFFldReferenceColumn)column).CtrlId = "fbfbcfff-9983-456d-b4aa-d2c2d451d1df";
 			((IUFFldReferenceColumn)column).IsMultiOrg  = false ;
           //foreach Reference's input filter parameter

            //foreach Reference's output set data
							
							
							
							
							
							
							
							
							
							
            ((IUFFldReferenceColumn)column).ApplyRefRelations();
			  
		 	                     
			column = GridControlBuilder.GridColumnBuilder(_UFGrid,"ReqQtyNum1","NumberColumnModel", "", 8,this.Model.PRChangeDoc_AfterPRChangeDocLine.Fields["ReqQtyNum"]/*ReqQtyNum*/,"ReqQtyNum", false, true, true, false, false, true, 8, 120, "24.9",true, false,"0","c3ff907f-72d3-4669-bcfb-50b3afb44ba6","c3ff907f-72d3-4669-bcfb-50b3afb44ba6","c44f236c-2e63-466a-b037-3f73be37f834");
			GridControlBuilder.GridNumberColumnBuilder((IUFNumberColumn)column, NumbericType.Numberic, 79228162514264337593543950335m, -79228162514264337593543950335m, null, null, null, null
			,true,"",false,"1","1");
	  
		 	                     
			column = GridControlBuilder.GridColumnBuilder(_UFGrid,"RequiredDeliveryDate1","DatePickerColumnModel", "", 0,this.Model.PRChangeDoc_AfterPRChangeDocLine.Fields["RequiredDeliveryDate"]/*RequiredDeliveryDate*/,"RequiredDeliveryDate", false, true, true, false, false, true, 3, 150, "10",true, false,"","84f71594-c83a-4914-8602-307bddd4d3af","84f71594-c83a-4914-8602-307bddd4d3af","272d69b3-f7f8-423b-b4e2-f96ed911185a");
                   
			((IUFDatePickerColumn)column).DateTimeType = DateTimeType.Date;
            ((IUFDatePickerColumn)column).DateTimeFormat = CurrentState._I18N._DateTimeFormatInfo;
	  
		 	                     
			column = GridControlBuilder.GridColumnBuilder(_UFGrid,"TextBoxColumn4","TextBoxColumnModel", "", 0,null,"", false, true, true, false, false, true, 0, 100, "",true, false,"","217c9e68-677c-485a-8d66-289e8ab34781","","0cc9a693-8bb8-428e-9503-8fe91e8a77c6");
         
			GridControlBuilder.GridTextBoxColumnBuilder((IUFTextBoxColumn)column,"",TextAlign.Left, false,"",false,"1","1","") ;          
	  
		 
        }





		#endregion
		

	}
}
